// 主界面
;define(function(require, exports, module) {
    'use strict';
    var util = require("util");
    var base = require("base");
    var leftMenu = require("../leftMenu/leftMenu");
    var topMenu = require("../topMenu/topMenu");
    var router = require("../hash/pageRouter");
    var dialog = require("dialog");
    var validate = require("validate");
    var pageIndex = 1,
        pageSize = 10,
        totalPageCount = 1,
        totalRecordCount = 0; //分页初始化
    var imgSrc;
    var init = function(num){
    	leftMenu.init(num);
    	topMenu.init(num);
    	$(".table-section").removeClass("none");
    	$(".footer").removeClass("none");
    	$("#leftMenu4").find(".leftMenu-item").removeClass("leftMenu-active");
    	$("#leftMenu4 #companyInfo").parent(".leftMenu-item").addClass("leftMenu-active");
		initEvent();
		router.init();
    };
	var initEvent = function(){
		$(".page-content-main").on("click",".handle-type",function(){
			router.route("newTaskList/newTaskDetail.html");
		});
		
		/*新增的点击事件*/
		$("#leftMenu4").on("click", "#passwdModify", function(){
			router.route("companyInfo/passwdModify.html");
		});
    };
    
    return {
        init:init
    };
});